#ifndef PLAYERCHOICEDIALOG_H
#define PLAYERCHOICEDIALOG_H

#include <QDialog>
#include <QButtonGroup>

class PlayerChoiceDialog : public QDialog {
    Q_OBJECT
public:
    explicit PlayerChoiceDialog(QWidget *parent = nullptr);
    int selectedSide() const { return m_selectedSide; } // 1-红方 2-黑方

signals:
private slots:
    void onSelectionMade(int side);

private:
    int m_selectedSide = 0; // 0-未选择
    QButtonGroup *buttonGroup;
};

#endif // PLAYERCHOICEDIALOG_H
